



	
std::string SMACK_VERSION = "3.0.0";
int packetReplyTimeout = 5000;
int keepAliveInterval = 1000;


std::string getVersion() {
	return SMACK_VERSION;
}


int getPacketReplyTimeout() {
	// The timeout value must be greater than 0 otherwise we will answer the default value
	if (packetReplyTimeout <= 0) {
		packetReplyTimeout = 5000;
	}
	return packetReplyTimeout;
}	


void setPacketReplyTimeout(int timeout) {
	if (timeout > 0) {
		packetReplyTimeout = timeout;
	}
}



int getKeepAliveInterval() {
	return keepAliveInterval;
}


void setKeepAliveInterval(int interval) {
	keepAliveInterval = interval;
}

